package com.leoman.dao;

import com.leoman.entity.UserResume;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

/**
 * 用户简历
 * Created by Administrator on 2016/10/18 0018 下午 3:05.
 */
public interface UserResumeDao extends JpaRepository<UserResume, Integer>, JpaSpecificationExecutor<UserResume> {

    @Query("select a from UserResume a where a.appUser.id = ?1")
    UserResume findOneByUserId(Integer userId);
}